Consider the case in which a user explicitly switches context at the server - level using the execute as login statement 假设用户使用execute as login语句在服务器级显式切换上下文。
If the execute as statement has been used to switch context , system user returns the name of the impersonated context 如果已使用execute as语句进行上下文切换,则system _ user将返回模拟的上下文的名称。
To allow for other workers to run , the current running worker has to relinquish control of the scheduler or switch context 若要允许其他工作线程运行,当前正在运行的工作线程必须放弃对计划程序或切换上下文的控制权。
First , the application must switch context to the user performing the encryption decryption by issuing the seckfmswitchtoidfile call 首先,因为应用程序必须通过调用seckfmswitchtoidfile将上下文切换到执行加密/解密的用户。
When called without an argument within a batch that has switched context by using execute as , suser sid returns the sid of the impersonated context 当通过使用execute as切换上下文的批处理中无参数调用时, suser _ sid将返回模拟上下文的sid 。